//
//  ViewController.m
//  DevelopTools
//
//  Created by beisheng03 on 2017/7/22.
//  Copyright © 2017年 beisheng. All rights reserved.
//

#import "ViewController.h"

#import "MJExtension.h"

#import "AFNetworking.h"

#import "NSDictionary+PropertyCode.h"

#import "NetworkTools.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self loadData];
    // Do any additional setup after loading the view, typically from a nib.
}
    
    
    
    
    
- (void)loadData{

    // 1.拼接参数
    NSMutableDictionary *parameters = [NSMutableDictionary dictionary];
    
    parameters[@"key"] = @"b1a5a03d13fea45df21bca2282533865";
    
    [[NetworkTools shareNetworkTools]sendRequestWithHttpMethod:GET_METHOD URLPath:@"mobile/index.php?c=index&a=index" parameters:parameters completionHandler:^(id responseObject, NSError *error) {
        if (error == nil) {
            
            
            [responseObject propertyCode];
            
//            NSLog(@"%@",[responseObject mj_JSONString]);
            
            
            
        } else {
            NSLog(@"%@",error.domain);
        }
        
        
        
    }];



}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
